/* 全局样式 */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

main {
    flex: 1;
}

/* 头像样式 */
.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #f8f9fa;
}

.avatar-md {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f8f9fa;
}

.avatar-lg {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f8f9fa;
}

/* 卡片样式 */
.card {
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* 问题列表样式 */
.question-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.15s;
}

.question-item:last-child {
    border-bottom: none;
}

.question-item:hover {
    background-color: #f8f9fa;
}

.question-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #4169E1;
    margin-bottom: 0.5rem;
}

.question-title a {
    color: #212529;
}

.question-title a:hover {
    color: #007bff;
}

.question-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    margin: 0.25rem;
    background-color: #e9ecef;
    color: #495057;
    border-radius: 4px;
    font-size: 0.8rem;
}

.tag-clickable {
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

.tag-clickable:hover {
    background-color: #0069d9;
    text-decoration: none;
    color: white;
}

/* 回答样式 */
.answer-item {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 5px;
    background-color: #fff;
    border: 1px solid #eee;
}

.answer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.875rem;
    color: #6c757d;
}

.answer-content {
    margin: 1rem 0;
}

.answer-actions {
    margin-top: 0.5rem;
}

/* 点赞按钮 */
.like-button {
    border: none;
    background: transparent;
    color: #6c757d;
    transition: color 0.2s;
}

.like-button:hover, .like-button.active {
    color: #dc3545;
}

.like-button:focus {
    outline: none;
    box-shadow: none;
}

/* 表单样式 */
.form-card {
    max-width: 800px;
    margin: 0 auto;
}

/* 页脚样式 */
.footer {
    background-color: #f8f9fa;
    padding: 20px 0;
    margin-top: 30px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .card {
        margin-bottom: 15px;
    }
    
    .question-title {
        font-size: 1.1rem;
    }
}

/* 编辑器样式 */
.editor-toolbar {
    margin-bottom: 1rem;
}

/* 搜索框 */
.search-form {
    position: relative;
}

.search-form .search-input {
    padding-right: 2.5rem;
}

.search-form .search-button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    border: none;
    background: transparent;
}

/* 通用 */
.text-secondary {
    color: #6c757d;
}

.bg-light-hover:hover {
    background-color: #f8f9fa;
}

.cursor-pointer {
    cursor: pointer;
} 